import request from '@/api/request'

// 品牌列表
export function findAllBrand(data) {
    return request({
      url: '/lejuAdmin/brand/findAllBrand',
      method: 'get',
      data
    })
  }
// 更新
  export function updateBrand(data) {
    return request({
      url: '/lejuAdmin/brand/updateBrand',
      method: 'POST',
      data
    })
  }

  // 删除
  export function delBrand(id) {
    return request({
      url: `/lejuAdmin/brand/delBrand/${id}`,
      method: 'delete',
    })
  }

//  添加分类
  export function addBrand(data) {
    return request({
      url: '/lejuAdmin/brand/addBrand',
      method: 'POST',
      data
    })
  }

  // 
  export function findBrandByPage(start,limit) {
    return request({
      url: `/lejuAdmin/brand/findBrandByPage/${start}/${limit}`,
      method: 'get',
    })
  }

  
  export function switchShowStatus(data) {
    return request({
      url:'/lejuAdmin/brand/switchShowStatus',
      method: 'post',
      data
    })
  }
